package com.example.prison.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.prison.entity.AttendanceDeviceInfo;
import com.github.pagehelper.PageInfo;

/**
* @author jiang
* @description 针对表【attendance_device_info】的数据库操作Service
* @createDate 2023-04-19 11:30:58
*/
public interface AttendanceDeviceInfoService extends IService<AttendanceDeviceInfo> {

    PageInfo<AttendanceDeviceInfo> get(int pageNumber, int pageSize, String deviceNumber, String deviceName);

    int add(AttendanceDeviceInfo attendanceDevice);

    void delete(Integer[] ids);

    int update(AttendanceDeviceInfo attendanceDevice, Integer deviceId);

    AttendanceDeviceInfo getById(Integer deviceId);

    PageInfo<AttendanceDeviceInfo> getByName(int pageNumber, int pageSize, String deviceName);

    PageInfo<AttendanceDeviceInfo> getByNumber(int pageNumber, int pageSize, String deviceNumber);

    AttendanceDeviceInfo getOneByNumber(String deviceNumber);

    AttendanceDeviceInfo getOneByNumberAndStatus(String deviceNumber,String status);

    PageInfo<AttendanceDeviceInfo> getRealStatus(int pageNumber, int pageSize);

}
